#ifndef FAST_MATH_H
#define FAST_MATH_H

#define LIMIT_HIGH(val, high) ((val) > (high) ? (high) : (val))
#define LIMIT_LOW(val, low) ((val) < (low) ? (low) : (val))

float fast_sin(float x, int n);

float arctan(float x);

float Q_rsqrt(float number);

float fast_exp(float y);

float fast_log2(float x);

float fast_log(float x);

#endif // !FAST_MATH_H
